<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="include/base.jsp" %>

<!DOCTYPE HTML>
<html lang="zh-CN">
<head>
	<meta charset="UTF-8">
	<title>PMS项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css"/>
	<script type="text/javascript" src="http://lib.sinaapp.com/js/jquery/1.7.2/jquery.min.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<link type="text/css" href="css/mycss.css" rel="stylesheet"/>
</head>
<body class="body">
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="brand" href="#">PMS项目管理系统</a>
				<%	
					Employee e = (Employee)session.getAttribute(Const.USER_IN_SESSION);
					String username = e.getUsername();
				 %>
				<span>
					<h1>Welcome</h1><a href="" class="user"><%=username %></a>&nbsp;&nbsp;|&nbsp;&nbsp;
					<%if(username == "aa"){ %>
						<a href="employee.jspx?_es=new_em" class="user">注册</a>
					<%}else{ %>
						<a href="employee.jspx?_es=exit" class="user">exit</a>
					<%} %>
				</span>
			</div>
		</div>
	</div>
	<div class="container">
		<div class="row">
			<div class="span9">
				<div class="page-header">
					<h2>项目列表</h2>
				</div>
				
				<a href="project.jspx?_m=new_project" class="btn btn-success"><i class="icon-plus icon-white"></i>开始一个新的项目</a>
				<%
					List<Project> list = (List<Project>)request.getAttribute(Const.PROJECT_IN_SESSION);
					for(Project pro : list){
				 %>
				<ul class="breadcrumb" style="margin-bottom:0px;border-radius:3px 3px 0 0;margin-top:15px">
					<li class="active">
						<a href="project.jspx?_m=pro&id=<%=pro.getP_id()%>"><i class="icon-th"></i><%=pro.getP_name() %></a>
					</li>
				</ul>
				<div class="wall">
					<p><%=pro.getP_describle() %></p>
				</div>
				<%	} %>
				
			</div>
			<div class="sapn3">
			</div>
		</div>
	</div>
</body>
</html>